<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>角色管理</title>
<link href="../css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script type="text/javascript" src="http://pic2.58.com/n/tuan/js/jquery-1.4.2.min.js"></script>
<script >
			$(function(){$("#clear").click(function(){ 
					$("#rolename").val("");
                })
             })
			 
			 $(function(){$("#addRole").click(function(){ 
					window.location.href="add";
                })
             })
</script>
<div class="lr_both">
<div class="right_conts">
  <div class="mg_tt">
    <div class="right_search">
      <div class="rs_title_bg">
        <h2 class="rs_title">角色管理</h2>
      </div>
	  </br>
	  <form id="searchRole" name="searchRole" action="/rolemanager/show" method="post">
      <div class="rs_div">
        <div class="pd_text">角色</div>
        <div class="input_div">
          <input  class="input_text" name="rolename" id="rolename" type="text" value="$!{rolename}"></input>
        </div>
		&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="submit" name="search" id="search" value="查询"/>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="button" id="clear" name="clear"  value="清空条件"/>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="button" id="addRole" name="addRole"  value="新增角色"/>
      </div>
	   </form>
    </div>
    <div class="table_div">

      <table class="sj_tl sj_tl_2" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th align="center" colspan="6">角色列表</th>
        </tr>
		<tr style="background:#ffd9b5;">
           <td align="center" >编号</td>
		   <td align="center" >角色名称</td>
		   <td align="center" >创建时间</td>
		   <td align="center" >操作</td>
        </tr>
		#set($roles = $roleList.items)
        #foreach($role in $roles)
		<tr onMouseOver="this.className='tdbg10'" onMouseOut="this.className='tdbg11'" class="tdbg11">
           <td align="center" >$role.id</td>
		   <td align="center" >$role.rolename</td>
   		   <td align="center" >$tools.getDateStringFromDate($role.createtime)</td>
           <td align="center" ><a href="/rolemanager/editrole?id=$role.id">权限修改</a> &nbsp &nbsp 
			<a href="/rolemanager/delrole?id=$role.id" onclick="if(confirm('确定要删除吗?')){return true;} return false;">删除</a></td>
        </tr>
		#end
      </table>
	  </br>
	   <div align="right">
        #parse("/views/default/page.vm")
        #pagebar($roleList "/rolemanager/show?#page#&$paramurl")
	   </div>
    </div>


  </div>

</div>
</div>
</body>
</html>
